package org.csu.jpetstore.service;

import org.csu.jpetstore.entity.Category;

import java.util.List;

public interface CatalogService {

    /**
     * @return java.util.List<org.csu.jpetstore.entity.Category>
     * @description: 获取所有Category
     * @author CSU_Luoyuhang
     * @date 2022/4/6 14:31
     */
    List<Category> getCategoryList();

    /**
     * @param categoryId:
     * @return org.csu.jpetstore.entity.Category
     * @description: 根据ID获取Category
     * @author CSU_Luoyuhang
     * @date 2022/4/7 12:16
     */
    Category getCategory(String categoryId);

    /**
     * @param categoryId:
     * @param name:
     * @param image:
     * @param description:
     * @description: 新增Category
     * @author CSU_Luoyuhang
     * @date: 2022/4/7 12:16
     */
    void createNewCategory(String categoryId, String name, String image, String description);
}
